#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main()
{
    int a,b,c,k;
    int count = 0;
    string str="";
    cin >> a >> b;
    c = abs(a + b);
    while(c)
    {
        if(count == 3)
        {
            str = ',' + str;
            count = 0;
        }
        str = (char)(c % 10 + '0') + str;
        c/=10;
        count ++;
    }
    if(a+b<0)
        str = '-' + str;
    if(a+b==0)
        str="0";
    cout << str;
}